<%@ Page Language="C#" MasterPageFile="~/App_Master/MasterPage.master" AutoEventWireup="true" CodeFile="CompanyInfoAll.aspx.cs" Inherits="CompanyInfoAll" Title="Employer Listings" Theme="Web20CSS" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Navigation" Runat="Server">
   
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server" Skin="Web20"
        height="75px" width="100%" MinDisplayTime="0" 
        Transparency="2">
            </telerik:RadAjaxLoadingPanel>
   <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1"> 
<telerik:RadGrid ID="RadGrid1" runat="server" 
            AllowAutomaticDeletes="True" AllowAutomaticInserts="True" 
            AllowAutomaticUpdates="True" AllowFilteringByColumn="True" AllowPaging="True" 
            AllowSorting="True" AutoGenerateColumns="False" AutoGenerateDeleteColumn="True" 
            AutoGenerateEditColumn="True" DataSourceID="LinqDataSource1" GridLines="None" 
            ShowGroupPanel="True" Skin="Web20" PageSize="5">
            <PagerStyle Mode="NextPrevAndNumeric" />
            <MasterTableView CommandItemDisplay="Top" DataKeyNames="ApplicationID" 
                DataSourceID="LinqDataSource1">
                <RowIndicatorColumn>
                    <HeaderStyle Width="20px" />
                </RowIndicatorColumn>
                <ExpandCollapseColumn>
                    <HeaderStyle Width="20px" />
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridBoundColumn DataField="ApplicationID" DataType="System.Int32" 
                        HeaderText="ApplicationID" ReadOnly="True" SortExpression="ApplicationID" 
                        UniqueName="ApplicationID" Visible="False">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="CompanyName" HeaderText="CompanyName" 
                        SortExpression="CompanyName" UniqueName="CompanyName">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Address" HeaderText="Address" 
                        SortExpression="Address" UniqueName="Address">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Address2" HeaderText="Address2" 
                        SortExpression="Address2" UniqueName="Address2">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="City" HeaderText="City" 
                        SortExpression="City" UniqueName="City">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn AllowFiltering="False" DataField="State" 
                        HeaderText="State" SortExpression="State" UniqueName="State">
                    </telerik:GridBoundColumn>
                    <telerik:GridMaskedColumn AllowFiltering="false" DataField="ZipCode" 
                        HeaderText="Zip Code" Mask="#####" UniqueName="ZipCode1">
                    </telerik:GridMaskedColumn>
                    <telerik:GridBoundColumn DataField="CompanyContact" HeaderText="CompanyContact" 
                        SortExpression="CompanyContact" UniqueName="CompanyContact">
                    </telerik:GridBoundColumn>
                    <telerik:GridMaskedColumn DataField="CompanyPhone" HeaderText="Phone" 
                        Mask="(###) ###-####" UniqueName="CompanyPhone1">
                    </telerik:GridMaskedColumn>
                    <telerik:GridBoundColumn DataField="CompanyEMail" HeaderText="CompanyEMail" 
                        SortExpression="CompanyEMail" UniqueName="CompanyEMail">
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
            <ClientSettings AllowDragToGroup="True">
                <Selecting AllowRowSelect="True" />
            </ClientSettings>
            <FilterMenu EnableTheming="True">
                <CollapseAnimation Duration="200" Type="OutQuint" />
            </FilterMenu>
        </telerik:RadGrid>
        </telerik:RadAjaxPanel>
    <div id="RadGrid_Web20" style="text-align: left">
                <asp:CheckBox ID="CheckBox1" Text="Export only data" runat="server"></asp:CheckBox>
                <br />
                <asp:CheckBox ID="CheckBox2" Text="Ignore paging (exports all pages)" runat="server">
                </asp:CheckBox>
                <br />
                <asp:CheckBox ID="CheckBox3" Text="Open exported data in new browser window" runat="server">
                </asp:CheckBox>
                <br />
                <br />
                <asp:Button ID="Button1" CssClass="button" Width="150px" Text="Export to Excel" OnClick="Button1_Click"
                    runat="server"></asp:Button>&nbsp;
                <asp:Button ID="Button2" CssClass="button" Width="150px" Text="Export to Word" OnClick="Button2_Click"
                    runat="server"></asp:Button>
                <asp:Button ID="Button3" CssClass="button" Width="150px" Text="Export to CSV" OnClick="Button3_Click"
                    runat="server"></asp:Button>
                   
            </div>
    <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
        ContextTypeName="CareerPathDataContext" EnableDelete="True" EnableInsert="True" 
        EnableUpdate="True" TableName="cp_Applications" OrderBy="CompanyName">
    </asp:LinqDataSource>
</asp:Content>

